/***********************************************************************
 * Module: Animal.java Author: MohamedBFS Purpose: Defines the Class Animal
 ***********************************************************************/

public class Animal
{
    private String nom;
    private String race;
    private String bruit;

    public Animal()
    {
	// TODO: implement
    }

    /**
     * @param nom
     * @param race
     * @param bruit
     */
    public Animal(String nom, String race, String bruit)
    {
	this.nom = nom;
	this.race = race;
	this.bruit = bruit;
    }

    /** @param oldAnimal */
    public Animal(Animal oldAnimal)
    {
	nom = oldAnimal.nom;
	race = oldAnimal.race;
	bruit = oldAnimal.bruit;
    }

    public String getNom()
    {
	return nom;
    }

    /** @param newNom */
    public void setNom(String newNom)
    {
	nom = newNom;
    }

    public String getRace()
    {
	return race;
    }

    /** @param newRace */
    public void setRace(String newRace)
    {
	race = newRace;
    }

    public String getBruit()
    {
	return bruit;
    }

    /** @param newBruit */
    public void setBruit(String newBruit)
    {
	bruit = newBruit;
    }

    public void sePresenter()
    {
	System.out.println("Bonjour! Je suis un(e) " + race + ".");
	System.out.println("Je m'appelle " + nom + ".");
	System.out.println("Je fais " + bruit + ".");
    }

}